<php>
    if($item['option'] == 'between'){
</php>
    <input type="datetime" class="form-control datetimepicker {$item.form.class}" name="{$item.name}_start" {$item.form.attr}>-
    <input type="datetime" class="form-control datetimepicker {$item.form.class}" name="{$item.name}_end" {$item.form.attr}>
<php> }else { </php>
    <input type="datetime" class="form-control datetimepicker {$item.form.class}" name="{$item.name}"  {$item.form.attr} value="<php>if($item['value'] == 'now'){ echo date('Y-m-d H:i:s');}else{echo date('Y-m-d H:i:s',$item['value']);}</php>" >
<php> } </php>